package com.zhaolang.qogir.ui.settings;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;

import com.zhaolang.qogir.R;
import com.zhaolang.qogir.ui.BaseActivity;
import com.zhaolang.qogir.ui.TitleView;

public class ActivitySettingsPrinter extends BaseActivity implements View.OnClickListener {
    private TextView tvSettingBtPrinterAdd;
    private TextView tvSettingWifiPrinterAdd;
    private TextView tvSettingSpecPrinterAdd;
    private TextView tvSettingGetPrinter;
    private TextView tvSettingHelpPrinter;
    private TitleView mTitle;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting_printer);
        findView();
    }

    private void findView() {
        View title = findViewById(R.id.vg_title);
        mTitle = new TitleView(this, title);
        mTitle.setCenterText(R.string.settings_printer, null);
        mTitle.setLeftIcon(R.drawable.btn_back, this);
        tvSettingBtPrinterAdd = findViewById(R.id.tv_setting_bt_printer_add);
        tvSettingWifiPrinterAdd = findViewById(R.id.tv_setting_wifi_printer_add);
        tvSettingSpecPrinterAdd = findViewById(R.id.tv_setting_spec_printer_add);
        tvSettingGetPrinter = findViewById(R.id.tv_setting_get_printer);
        tvSettingHelpPrinter = findViewById(R.id.tv_setting_help_printer);

        tvSettingBtPrinterAdd.setOnClickListener(this);
        tvSettingGetPrinter.setOnClickListener(this);
        tvSettingSpecPrinterAdd.setOnClickListener(this);
        tvSettingWifiPrinterAdd.setOnClickListener(this);
        tvSettingHelpPrinter.setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case TitleView.ID_LEFT:
                finish();
                break;
            case R.id.tv_setting_bt_printer_add:
                startActivity(new Intent(this, ActivitySettingsBTPrinter.class));
                break;
            case R.id.tv_setting_wifi_printer_add:
                Toast.makeText(this, "暂未支持", Toast.LENGTH_SHORT).show();
                break;
            case R.id.tv_setting_spec_printer_add:
                Toast.makeText(this, "暂未支持", Toast.LENGTH_SHORT).show();
                break;
            case R.id.tv_setting_get_printer:
                Toast.makeText(this, "暂未支持", Toast.LENGTH_SHORT).show();
                break;
            case R.id.tv_setting_help_printer:
                break;
            default:
                break;
        }
    }

}
